<?php
/**
 * Created by Zhy
 * User: Zhy
 * Date: 2023/12/8
 * Time: 16:49
 */

namespace app\api\validate;

class IdMustPositiveInteger extends BaseValidate
{
    //验证规则
    protected $rule = [
        'id' => 'require|isPositiveInteger',
    ];
    //错误提示
    protected $message = [
        'id.require' => 'id不能为空',
        'id.isPositiveInteger' => 'id必须为正整数'
    ];
}